package com.mktech.taraservice.handler;

import java.lang.ref.WeakReference;

import android.os.Handler;
import android.os.Looper;

public class WeakHandler<T> extends Handler
{
	WeakReference<T> owner;
	
	public WeakHandler(T owner)
	{
		this.owner = new WeakReference<T>(owner);
	}
	
	public WeakHandler(T owner, Looper loop)
	{
		super(loop);
		this.owner = new WeakReference<T>(owner);
	}
	
	public WeakReference<T> getOwner()
	{
		return owner;
	}
}
